package com.xuanyue.db.xuan.core.db;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class TableMetaV2 implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private int source;
	private Map<String,ColumnMetaV2> columns = new HashMap<>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSource() {
		return source;
	}
	public void setSource(int source) {
		this.source = source;
	}
	public Map<String, ColumnMetaV2> getColumns() {
		return columns;
	}
	public void setColumns(Map<String, ColumnMetaV2> columns) {
		this.columns = columns;
	}
	
	public void add(ColumnMetaV2 columnMetaV2) {
		columns.put(columnMetaV2.getName()  , columnMetaV2);
	}
	
}
